home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / ishft.z / ishft
Encoding:
Text File  |  2002-10-03  |  3.4 KB  |  74 lines

  1. ISHFT(3I)                                             Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      IISSHHFFTT, IIIISSHHFFTT, JJIISSHHFFTT, KKIISSHHFFTT, LLSSHHIIFFTT, RRSSHHIIFFTT - Performs a logical
  6.      shift
  7.  
  8. SSYYNNOOPPSSIISS
  9.      IISSHHFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  10.      IIIISSHHFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  11.      JJIISSHHFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  12.      KKIISSHHFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  13.      LLSSHHIIFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  14.      RRSSHHIIFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  15.  
  16. IIMMPPLLEEMMEENNTTAATTIIOONN
  17.      UNICOS, UNICOS/mk, IRIX systems
  18.  
  19.      CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
  20.  
  21. SSTTAANNDDAARRDDSS
  22.      Fortran
  23.  
  24.      Fortran extensions:  IIIISSHHFFTT, JJIISSHHFFTT, KKIISSHHFFTT, LLSSHHIIFFTT, RRSSHHIIFFTT
  25.  
  26. DDEESSCCRRIIPPTTIIOONN
  27.      The IISSHHFFTT, IIIISSHHFFTT, JJIISSHHFFTT, KKIISSHHFFTT, LLSSHHIIFFTT and RRSSHHIIFFTT intrinsic
  28.      functions perform a logical shift.  They accept the following
  29.      arguments:
  30.  
  31.      _i         Must be of type integer.  For IIIISSHHFFTT, must be of type
  32.                integer (KIND=2).  For JJIISSHHFFTT, must be of type integer
  33.                (KIND=4).  For KKIISSHHFFTT, must be of type integer (KIND=8).
  34.  
  35.      _s_h_i_f_t     Must be of type integer.  The absolute value of _s_h_i_f_t must
  36.                be less than or equal to BBIITT__SSIIZZEE((_i)).
  37.  
  38.                IISSHHFFTT with a positive _s_h_i_f_t argument can also be specified
  39.                as LLSSHHIIFFTT.  IISSHHFFTT with a negative _s_h_i_f_t argument can also be
  40.                specified as RRSSHHIIFFTT with |_s_h_i_f_t|.
  41.  
  42.      These are elemental intrinsic functions.  The names of these
  43.      intrinsics cannot be passed as arguments.
  44.  
  45. RREETTUURRNN VVAALLUUEESS
  46.      The result type and type parameters are the same as _i.  On IRIX
  47.      systems, the result can be affected by the --ii option on the ff9900(1)
  48.      command line.
  49.  
  50.      The result has the value obtained by shifting the bits of _i by _s_h_i_f_t
  51.      positions.  If _s_h_i_f_t is positive, the shift is to the left; if _s_h_i_f_t
  52.      is negative, the shift is to the right; and if _s_h_i_f_t is zero, no shift
  53.      is performed.  Bits shifted out from the left or from the right, as
  54.      appropriate, are lost.  Zeros are shifted in from the opposite end.
  55.  
  56.      LLSSHHIIFFTT and RRSSHHIIFFTT return the value of the first argument shifted left
  57.      or right, respectively, the number of times specified by the _s_h_i_f_t.
  58.      Zeros are shifted in.
  59.  
  60.      The bit model defines the interpretation of an integer value as a
  61.      sequence of bits.  For more information on the bit model, see the
  62.      MMOODDEELLSS(3I) man page.
  63.  
  64. EEXXAAMMPPLLEESS
  65.      IISSHHFFTT((33,,11)) has the result 6.
  66.  
  67. SSEEEE AALLSSOO
  68.      ff9900(1)
  69.  
  70.      MMOODDEELLSS(3I)
  71.  
  72.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  73.      man page.
  74.